function login3() {
    var name = $("#username").val();
    var UID = $("#UID").val();
    $.ajax({
        url: "login.action",
        type: "post",
        async: true,
        dataType: "json",
        contentType: "application/x-www-form-urlencoded;charset=utf-8",
        data: {
            "name": name,
            "UID": UID
        },
        success: function (data) {
            if (data.msg == "登录成功！") {
                window.location.href = "message.jsp";
            } else {
                window.location.href = "loan.jsp";
                alert("用户名或者身份证号输入有误！")
            }
        },
        error: function () {
            alert("请求失败！");
        }
    })
}
